home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 3.6 KB | 132 lines | [TEXT/MPS ] |
- /*
- File: GregorianCalendarDate.idl
-
- Contains: IDL interface for the GregoiranCalendarDate class
-
- Version: Technology: System 8.0
- Release: Universal Interfaces 3.0d3 on Copland DR1
-
- Copyright: © 1995-1996 by Apple Computer, Inc. All rights reserved.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
- */
-
-
- #ifndef __GREGORIANCALENDARDATE__
- #define __GREGORIANCALENDARDATE__
-
- #include <somobj.idl>
- #include <somcls.idl>
-
- #include <CalendarDate.idl>
- #include <Types.idl>
-
- interface TGregorianCalendarDate : TCalendarDate
- {
- //_________________________________________________________________________________________
- //
- // Validation Flags
- //
- //_________________________________________________________________________________________
-
- const OptionBits kGregorianValidateDayMask = 0x00000001;
- const OptionBits kGregorianValidateMonthMask = 0x00000002;
- const OptionBits kGregorianValidateYearMask = 0x00000004;
- const OptionBits kGregorianValidateSecondsMask = 0x00000008;
- const OptionBits kGregorianValidateMinutesMask = 0x00000010;
- const OptionBits kGregorianValidateHoursMask = 0x00000020;
- const OptionBits kGregorianValidateDayOfWeekMask = 0x00000040;
- const OptionBits kGregorianValidateWeekOfYearMask = 0x00000080;
- const OptionBits kGregorianValidateDayOfYearMask = 0x00000100;
- const OptionBits kGregorianValidateAllMask = 0x000001FF;
-
-
- //_________________________________________________________________________________________
- //
- // Methods
- //
- //_________________________________________________________________________________________
-
- UInt16 GregorianDateGetMonth();
- void GregorianDateSetMonth(in UInt16 month);
-
- UInt16 GregorianDateGetDay();
- void GregorianDateSetDay(in UInt16 day);
-
- UInt16 GregorianDateGetYear();
- void GregorianDateSetYear(in UInt16 year);
-
- UInt16 GregorianDateGetHours();
- void GregorianDateSetHours(in UInt16 hours);
-
- UInt16 GregorianDateGetMinutes();
- void GregorianDateSetMinutes(in UInt16 minutes);
-
- UInt16 GregorianDateGetSeconds();
- void GregorianDateSetSeconds(in UInt16 seconds);
-
- UInt16 GregorianDateGetDayOfWeek();
- void GregorianDateSetDayOfWeek(in UInt16 dayOfWeek);
-
- UInt16 GregorianDateGetDayOfYear();
- void GregorianDateSetDayOfYear(in UInt16 dayOfYear);
-
- UInt16 GregorianDateGetWeekOfYear();
- void GregorianDateSetWeekOfYear(in UInt16 weekOfYear);
-
- #ifdef __SOMIDL__
- implementation
- {
- passthru C_h_before = "#include <TimeObjects.h>";
- releaseorder: _get_fMonth,
- _set_fMonth,
- _get_fDay,
- _set_fDay,
- _get_fYear,
- _set_fYear,
- _get_fHours,
- _set_fHours,
- _get_fMinutes,
- _set_fMinutes,
- _get_fSeconds,
- _set_fSeconds,
- _get_fDayOfWeek,
- _set_fDayOfWeek,
- _get_fDayOfYear,
- _set_fDayOfYear,
- _get_fWeekOfYear,
- _set_fWeekOfYear,
- GregorianDateGetMonth,
- GregorianDateSetMonth,
- GregorianDateGetDay,
- GregorianDateSetDay,
- GregorianDateGetYear,
- GregorianDateSetYear,
- GregorianDateGetHours,
- GregorianDateSetHours,
- GregorianDateGetMinutes,
- GregorianDateSetMinutes,
- GregorianDateGetSeconds,
- GregorianDateSetSeconds,
- GregorianDateGetDayOfWeek,
- GregorianDateSetDayOfWeek,
- GregorianDateGetDayOfYear,
- GregorianDateSetDayOfYear,
- GregorianDateGetWeekOfYear,
- GregorianDateSetWeekOfYear;
- somInit : override;
- ValidateCalendarDate : override;
- majorversion = 1;
- minorversion = 1;
-
- };
- #endif
-
- };
-
- #endif
-